package org.iteye.bbjava.action;

import java.io.File;
import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import org.iteye.bbjava.frame.work.utils.Struct2Util;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class UpLoadFileAction extends ActionSupport {
	
	
	public String upload(){
		HttpServletRequest httpServletRequest = Struct2Util.getHttpServletRequest();
		File filePath = new File(".");
		try {
			Struct2Util.toFile(httpServletRequest, filePath);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
	

}
